Spread WPF Documentation
Insert Method (NotifyCollectionBase<T>)


The zero-based index at which to insert the item.
The new item.
Inserts an item at a specified index.
Syntax
'Declaration
 
Public Overridable Sub Insert( _
   ByVal index As System.Integer, _
   ByVal item As T _
) 
'Usage
 
Dim instance As NotifyCollectionBase(Of T)
Dim index As System.Integer
Dim item As T
 
instance.Insert(index, item)
public virtual void Insert( 
   System.int index,
   T item
)

Parameters

index
The zero-based index at which to insert the item.
item
The new item.
Exceptions
ExceptionDescription
System.NotSupportedExceptionThe collection is read-only.
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)

See Also

Reference

NotifyCollectionBase<T> Class
NotifyCollectionBase<T> Members

 

 


Copyright © GrapeCity, inc. All rights reserved.